package com.warm.mini.wework.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description 企微api
 * @Author warmchuang
 * @Date 2022/2/10 18:17
 */
//@FeignClient(name = "weworkApi", url = "https://qyapi.weixin.qq.com/")
public interface WeworkApiFeign {
    /**
     * 获取 accessToken
     * @param corpid
     * @param corpsecret
     * @return
     */
    @RequestMapping(value = "/cgi-bin/gettoken", method = RequestMethod.GET)
    JSONObject gettoken(@RequestParam("corpid") String corpid, @RequestParam("corpsecret") String corpsecret);
}
